home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / arcers / unzip51.zip / FUNZIP.DOC < prev    next >
Text File  |  1994-02-06  |  3KB  |  83 lines

  1.  
  2. FUNZIP(1)                USER COMMANDS                  FUNZIP(1)
  3.  
  4. NAME
  5.      funzip - extract from a ZIP archive file as a filter
  6.  
  7. SYNOPSIS
  8.      [...]  |  funzip [ -password ]  |  [...]
  9.  
  10.      funzip [ -password ]  input.zip |  [...]
  11.  
  12. ARGUMENTS
  13.      [-password]
  14.           Optional  password  to  be  used  if  ZIP  archive   is
  15.           encrypted.   Decryption  may  not  be supported at some
  16.           sites.  See DESCRIPTION for more details.
  17.  
  18. DESCRIPTION
  19.      funzip acts as a filter; that is,  it  assumes  that  a  ZIP
  20.      archive  is being piped into standard input, and it extracts
  21.      the first member from the archive to stdout.  If there is an
  22.      argument,  then  the  input  comes  from  the specified file
  23.      instead of from stdin.  A password for encrypted  zip  files
  24.      can  be  specified  on  the command line (preceding the file
  25.      name, if any) by prefixing the password with a dash.  If the
  26.      first  entry of the zip file is encrypted and no password is
  27.      specified on the command line, then the user is prompted for
  28.      a password, and the password is not echoed on the console.
  29.  
  30.      Given the limitation on single-member extraction, funzip  is
  31.      most useful in conjunction with a secondary archiver program
  32.      such as tar(1).  The following section includes  an  example
  33.      illustrating this usage in the case of disk backups to tape.
  34.  
  35. EXAMPLES
  36.      To use funzip to  extract  the  first  member  file  of  the
  37.      archive test.zip and to pipe it into more(1):
  38.  
  39.           funzip test.zip | more
  40.  
  41.      To use funzip to test the first member file of test.zip (any
  42.      errors will be reported on standard error):
  43.  
  44.           funzip test.zip > /dev/null
  45.  
  46.      To use zip and funzip in place of  compress(1)  and  zcat(1)
  47.      for tape backups:
  48.  
  49.           tar cf - . | zip -7 | dd of=/dev/nrst0 obs=8k
  50.           dd if=/dev/nrst0 ibs=8k | funzip | tar xf -
  51.  
  52.      (where, for example, nrst0 is a SCSI tape drive).
  53.  
  54. BUGS
  55.      When piping an encrypted file into more and allowing  funzip
  56.      to  prompt for password, the terminal may sometimes be reset
  57.      to a non-echo mode.  This is apparently due to a race condi-
  58.      tion  between  the two programs; funzip changes the terminal
  59.      mode to non-echo before more reads its state, and more  then
  60.      ``restores''  the  terminal to this mode before exiting.  To
  61.      recover, run  funzip  on  the  same  file  but  redirect  to
  62.      /dev/null  rather  than  piping  into  more; after prompting
  63.      again for the password, funzip will reset the terminal prop-
  64.      erly.
  65.  
  66.      There is presently no way to  extract  any  member  but  the
  67.      first  from a ZIP archive.  This would be useful in the case
  68.      where a ZIP archive is included within another archive.   In
  69.      the  case where the first member is a directory, funzip sim-
  70.      ply creates the directory and exits.
  71.  
  72.      The functionality of  funzip  should  be  incorporated  into
  73.      unzip itself (future release).
  74.  
  75. SEE ALSO
  76.      unzip(1),  zip(1),  zipcloak(1),   zipinfo(1),   zipnote(1),
  77.      zipsplit(1)
  78.  
  79. AUTHOR
  80.      Mark Adler (Info-ZIP)
  81.  
  82. Info-ZIP             Last change:  7 Feb 94                  v3.8
  83.